arm: armv7: add compile option -mno-unaligned-access if available
authorTetsuyuki Kobayashi <[email protected]>
Sun, 1 Jul 2012 23:42:10 +0000 (23:42 +0000)
committerAlbert ARIBAUD <[email protected]>
Fri, 20 Jul 2012 12:24:08 +0000 (14:24 +0200)
commit5eb497429ef065083d75ca0bbc61d421a17fcec1
tree0fcb14a7dd986c017340238bfbeb9d9cb2ad6470
parent448217d4b2e11b11ae5addd1d1f752ce194d6af0
arm: armv7: add compile option -mno-unaligned-access if available

Recent compiler generates unaligned memory access in armv7 default.
But current U-Boot does not allow unaligned memory access, so it causes
data abort exception.
This patch add compile option "-mno-unaligned-access" if it is available.

Signed-off-by: Tetsuyuki Kobayashi <[email protected]>
Tested-by: Gary Thomas <[email protected]>
arch/arm/cpu/armv7/config.mk